cmake_minimum_required(VERSION 3.21.0)
project(MiniBlinkTest)

set(BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")

# 设置项目库文件的输出路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OUTPUT_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OUTPUT_DIR})

enum_directories_sources(CONSOLE_HEADERS ${BASE_DIR}/include)
enum_directories_sources(CONSOLE_SOURCES ${BASE_DIR}/src)

# find_package(Qt4 REQUIRED COMPONENTS QtCore QtGui)

# 配置依赖库的 include 目录
include_directories(
    SYSTEM ${VENDORS_DIR}/include
    ${BASE_DIR}/include
)

# 配置依赖库的 lib 目录
link_directories(
    ${VENDORS_DIR}/lib
    ${ROOT_DIR}/lib
)

add_executable(${PROJECT_NAME} WIN32
    ${BASE_DIR}/res/console.rc

    ${CONSOLE_HEADERS}
    ${CONSOLE_SOURCES}
)

# target_link_libraries(${PROJECT_NAME} Qt4::QtCore Qt4::QtGui)
set_target_properties(${PROJECT_NAME} PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
# set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/level='requireAdministrator'")
